package com.wlxc.zb.model;

import java.sql.Timestamp;
import java.util.Date;

/**
 * 
 * @desc：系统用户
 * @author： duwen
 * @project： zb
 * @create time： 2013-11-15 下午02:48:14
 * @version： v1.0
 */

public class User implements java.io.Serializable {

	/**
	 * id自增
	 */
	private Integer id;
	/**
	 * 用户名，登录名
	 */
	private String userName;
	/**
	 * 昵称
	 */
	private String nickName;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 电话号码
	 */
	private String telephone;
	/**
	 * 邮箱字段以前系统未使用，现在需要单点登录，因此将此字段分配给sessionId使用
	 */
	private String email;
	/**
	 * 角色
	 */
	private Integer userRole;
	/**
	 * 用户类型
	 */
	private Integer userType;
	/**
	 * 是否在线
	 */
	private Integer isLine;
	/**
	 * 是否禁言
	 * 0：未禁言
	 * 1：禁言
	 */
	private Integer gag;
	/**
	 * 创建时间
	 */
	private Date createTime;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Integer getUserRole() {
		return userRole;
	}
	public void setUserRole(Integer userRole) {
		this.userRole = userRole;
	}
	public Integer getUserType() {
		return userType;
	}
	public void setUserType(Integer userType) {
		this.userType = userType;
	}
	public Integer getIsLine() {
		return isLine;
	}
	public void setIsLine(Integer isLine) {
		this.isLine = isLine;
	}
	public Integer getGag() {
		return gag;
	}
	public void setGag(Integer gag) {
		this.gag = gag;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", nickName="
				+ nickName + ", password=" + password + ", telephone="
				+ telephone + ", email=" + email + ", userRole=" + userRole
				+ ", userType=" + userType + ", isLine=" + isLine + ", gag="
				+ gag + ", createTime=" + createTime + "]";
	}

}
